FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER xuhuixu@hailiang.com

ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /st-oa-platform

WORKDIR /st-oa-platform

EXPOSE 5005

ADD ./target/st-oa-platform.jar ./

CMD sleep 180;java $JAVA_OPTS -jar st-oa-platform.jar
